/* 
 * File:   Menu.h
 * Author: agu
 *
 * Created on 16 de junio de 2014, 17:13
 */

#ifndef MENU_H
#define	MENU_H
#include <gtkmm-3.0/gtkmm.h>
#include "client_MenuGame.h"
#include "client_socket.h"

class Menu : public Gtk::Window {
public:
    Menu(Glib::RefPtr<Gtk::Application> aplicacion);
    void run();
    void setSocket(Client_socket s);
    ~Menu();
private:
    void loadWidgets();
    void connectWidgets();
    void close();
    void newGame();
    void options();
    Glib::RefPtr<Gtk::Application> app;
    Gtk::Window* window;
    Glib::RefPtr<Gtk::Builder> builder;
    Gtk::Button *buttonNew, *buttonOption, *buttonQuit;
    MenuGame newMenuGame;
    Client_socket socket;

};

#endif	/* MENU_H */

